package com.jemmyee.pizza.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * ApplyFlow entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="apply_flow"
    ,catalog="milestone.dbo"
)

public class ApplyFlow  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Integer status;
     private Integer roleId;
     private String info;

     private Integer nextStatus ;
     private Integer preStatus ;
     private Integer refStatus ;
     
     private Integer needEqui ;
     private Integer needTask ;
     private Integer ableEdit ;

    // Constructors

    /** default constructor */
    public ApplyFlow() {
    }

    
    /** full constructor */
    public ApplyFlow(Integer status, Integer roleId, String info,Integer nextStatus,Integer preStatus,Integer refStatus,Integer needEqui,Integer needTask,Integer ableEdit) {
        this.status = status;
        this.roleId = roleId;
        this.info = info;
        this.nextStatus = nextStatus ;
        this.preStatus = preStatus ;
        this.refStatus = refStatus ;
        
        this.needEqui = needEqui ;
        this.needTask = needTask ;
        this.ableEdit = ableEdit ;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="status")

    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    @Column(name="role_id")

    public Integer getRoleId() {
        return this.roleId;
    }
    
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
    
    @Column(name="info", length=100)

    public String getInfo() {
        return this.info;
    }
    
    public void setInfo(String info) {
        this.info = info;
    }

    @Column(name="next_status")
	public Integer getNextStatus() {
		return nextStatus;
	}


	public void setNextStatus(Integer nextStatus) {
		this.nextStatus = nextStatus;
	}

	@Column(name="pre_status")
	public Integer getPreStatus() {
		return preStatus;
	}


	public void setPreStatus(Integer preStatus) {
		this.preStatus = preStatus;
	}

	@Column(name="ref_status")
	public Integer getRefStatus() {
		return refStatus;
	}


	public void setRefStatus(Integer refStatus) {
		this.refStatus = refStatus;
	}

	@Column(name="need_equi")
	public Integer getNeedEqui() {
		return needEqui;
	}


	public void setNeedEqui(Integer needEqui) {
		this.needEqui = needEqui;
	}

	@Column(name="need_task")
	public Integer getNeedTask() {
		return needTask;
	}


	public void setNeedTask(Integer needTask) {
		this.needTask = needTask;
	}

	@Column(name="able_edit")
	public Integer getAbleEdit() {
		return ableEdit;
	}


	public void setAbleEdit(Integer ableEdit) {
		this.ableEdit = ableEdit;
	}
   








}